package com.yuanlai.quartz.model;

//import lombok.Data;

//import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;


public class Student implements Serializable {
   
    private Integer id;
    /**
     * 学号
     **/
    @NotNull(message = "学号不能为空!!!")
    @Size(min = 10, max = 10, message = "学号必须是10位!!!")
    //@Column(unique = true) // 添加此行
    private String no;
    /**
     * 姓名
     **/
    @NotNull(message = "姓名不能为空!!!")
    @Size(min = 2, max = 10, message = "姓名长度需在2-10之间!!!")
    private String name;
    /**
     * 性别
     **/
    private Integer sex;
    /**
     * 课程号
     **/
    private Integer cno;
    /**
     * 成绩
     **/
    private Integer score;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getNo() {
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public Integer getCno() {
		return cno;
	}
	public void setCno(Integer cno) {
		this.cno = cno;
	}
	public Integer getScore() {
		return score;
	}
	public void setScore(Integer score) {
		this.score = score;
	}
    
    
    
}
